# 代码所有：cxw
# 开发时间：2021/11/21 15:36
import matplotlib.pyplot as plt

# input_number = [1, 2, 3, 4, 5]
# out_number = [1, 8, 27, 64, 125]
input_number = list(range(1, 5001))
out_number = list(x ** 3 for x in input_number)
# plt.plot(input_number, out_number, linewidth=4)
plt.scatter(input_number, out_number, s=4, edgecolors="none", cmap=plt.cm.Blues, c=out_number)
# 设置图表标题并给坐标加上标签
plt.title("Square**3 of Value", fontsize=24)
plt.xlabel("Value", fontsize=14)
plt.ylabel("Squares of Value", fontsize=14)
# 设置刻度标记的大小
plt.tick_params(axis="both", which="major", labelsize=14)
# 设置坐标轴的范围
plt.axis = ([0, 5010, 0, 11111])
plt.show()
